<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/5/7
  Time: 10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>思楠订餐</title>

    <meta name="description" content="思楠订餐" />

    <link rel="stylesheet" type="text/css" href="/resources/css/style.css" />

    <script type="text/javascript" src="/resources/js/jquery.min.js"></script>

    <script type="text/javascript" src="/resources/js/commons.js"></script>

<%--    <script type="text/javascript">--%>

<%--        $(function() {--%>

<%--           $(".login_submit").click(function () {--%>
<%--               var account = $("#account").val();--%>
<%--               var password = $("#password").val();--%>
<%--               var roleId = $("input[name='role_id']:checked").val();--%>
<%--               var url = host + "/loginUser";--%>
<%--               var params = {"account": account, "password": password, "roleId": roleId};--%>
<%--               $.post(url, params, function (result) {--%>
<%--                   console.log(result);--%>
<%--               });--%>
<%--           });--%>

<%--        });--%>

<%--    </script>--%>



</head>

<body>


<div id="signup">

    <div id="signup-ct">

        <div id="signup-header">

            <h2>欢迎访问</h2>

        </div>

        <form action="/loginUser" method="POST">

            <div class="txt-fld">

                <label for="account">账户</label>

                <input id="account" class="good_input" name="account" type="text" />

            </div>

            <div class="txt-fld">

                <label for="password">密码</label>

                <input id="password" class="good_input" name="password" type="password" />

            </div>

            <div class="txt-fld">
                <label for="role_div">角色</label>
                <table id="role_div">
                    <tr>
                        <td style="min-width: 90px;">
                        </td>
                        <td>
                            <label for="role_admin">管理员</label>
                        </td>
                        <td>
                            <input id="role_admin" name="roleId" type="radio" value="1"/>
                        </td>
                    </tr>
                    <tr>
                        <td style="min-width: 90px;">
                        </td>
                        <td>
                            <label for="role_customer">顾  客</label>
                        </td>
                        <td>
                            <input id="role_customer" name="roleId" type="radio" value="2" checked/>
                        </td>
                    </tr>
                </table>
            </div>

            <div class="btn-fld">

                <button class="login_submit" type="submit">登录&raquo;</button>

            </div>

        </form>

    </div>

</div>

</body>

</html>